package com.edu.admin.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.edu.admin.common.BaseService;
import com.edu.admin.entity.SysDistrict;
import com.edu.admin.mapper.DistrictMapper;
import com.edu.admin.vo.DistrictVo;

/**
 * 地区服务
 * 
 * @author Wangjiong
 *
 */
@Transactional
@Service
public class DistrictService extends BaseService<DistrictMapper, SysDistrict> {
	

	/**
	 * 获取地区列表
	 * 
	 * @param parentcode
	 * 
	 * @return List<DistrictVo>
	 */
	public List<DistrictVo> getDistrictList(String parentcode) throws Exception {
		List<DistrictVo> districtList = this.mapper.getDistrictList(parentcode);
		return districtList;
		
	}
	
	

}
